package study.Controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 描述:
 *
 * @author Ychiha
 * @version 1.0
 * @date 11/1/2022 下午6:41
 */
@Controller
public class ViewController {

    /**
     * 跳转到登录页面
     * @return String
     */
    @RequestMapping("toview") //请求的url:http:localhost:8080/toview
    public String view(){

        //重定向到前端的登录页面
        return "redirect:http://localhost:8081/#/pages/login/login";

    }




}
